package com.shrcl.engineerprocess.domain.proxy;

import com.shrcl.engineerprocess.domain.proxy.NotificationAction;
import com.uniquesoft.gwt.shared.GWTNamedEntity;
import edu.fudan.mylang.pf.ProxyTarget;

@ProxyTarget("com.shrcl.engineerprocess.domain.Notification")
public class NotificationProxy extends GWTNamedEntity {
  public NotificationProxy() {
    this.setClazzName("com.shrcl.engineerprocess.domain.Notification");
  }
  
  private String status;
  
  public void setStatus(final String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public Boolean isActionValid(final NotificationAction action) {
    return NotificationManager.isActionValid(action,status);
  }
}
